package com.cms.admin.mapper;

import com.cms.admin.model.UserList;
import com.cms.admin.model.UserListExt;

import java.util.List;

public interface UserListMapper {

	
	int insertUser(UserList user);

	List<UserList> getAllUser(UserListExt search);

	List<UserList> getUserByConditionWithLimit(UserListExt search);

	int countByCondition(UserListExt search);
	
	UserList getById(long id);

	UserList getByName(String userName);
	
	void deleteUser(String id);
	
	void updateUser(UserList user);
	
	void updateSelfPassword(UserList user);
	
    void resetUserPassword(UserList user);

	UserList getUserByUserNo(String userNo);

	int updateByUserIdSelective(UserList record);

}